<%= render "editor_toolbar" %>
<%= form_for(Reply.new, remote: true, url: topic_replies_path(@topic)) do |f| %>

    <div class="form-group">
      <%= f.text_area :body, class: "topic-editor form-control", rows: "4", tabindex: "1" %>
    </div>
    <div class="submit-buttons">
      <button type="submit" id="reply-button" class="btn btn-primary" tabindex="2" , data-disable-with='<%= t("topics.submit_reply") %>'><%= t("topics.submit_reply") %></button>
      <span class="help-inline" style="padding-left: 5px;" title="或者 Ctrl + Enter"><kbd>Command</kbd> + <kbd>Enter</kbd></span>

      <div class="pull-right"><a href="/markdown" target="_blank">排版说明</a></div>
      <% if Node.find_by_id(@topic.node_id) and Node.find(@topic.node_id).name.index("匿名") %>
               <span class="help-inline">
        <label>
            <%= f.check_box :anonymous %>  <%= t("topics.real_name") %>
             </label>
      </span>
      <% end %>
    </div>
<% end %>
